package com.mr.security.web.webapp.rbac.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Component;

import java.util.Collection;

/**
 * Class: UserCheckService
 * User (作者):MRui
 * TODO (描述)：用户校验实现类
 * Date 2019-01-17 23:39
 */
@Slf4j
@Component
public class UserCheckService implements UserDetails {
    @Override
    public Collection<? extends GrantedAuthority> getAuthorities() {
        return null;
    }

    @Override
    public String getPassword() {
        log.info("getPassword11");
        return null;
    }

    @Override
    public String getUsername() {
        log.info("getUsername11");
        return null;
    }

    @Override
    public boolean isAccountNonExpired() {
        log.info("isAccountNonExpired11");
        return true;
    }

    @Override
    public boolean isAccountNonLocked() {
        log.info("isAccountNonLocked11");
        return false;
    }

    @Override
    public boolean isCredentialsNonExpired() {
        log.info("isCredentialsNonExpired11");
        return false;
    }

    @Override
    public boolean isEnabled() {
        log.info("isEnabled11");
        return false;
    }
}
